package com.example.victory.swagger.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

/**
 * 客户全景-资产-客户基本信息
 */
@ApiModel(description = "客户全景-资产-客户基本信息")
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-04-26T10:50:39.083+08:00")

public class CustomerBaseInfo   {
  @JsonProperty("name")
  private String name = null;

  @JsonProperty("customerId")
  private String customerId = null;

  @JsonProperty("custLevel")
  private Integer custLevel = null;

  @JsonProperty("riskLevel")
  private Integer riskLevel = null;

  @JsonProperty("phone")
  private String phone = null;

  @JsonProperty("imId")
  private String imId = null;

  public CustomerBaseInfo name(String name) {
    this.name = name;
    return this;
  }

  /**
   * 客户姓名
   * @return name
  **/
  @ApiModelProperty(example = "张三", value = "客户姓名")


  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public CustomerBaseInfo customerId(String customerId) {
    this.customerId = customerId;
    return this;
  }

  /**
   * 客户号
   * @return customerId
  **/
  @ApiModelProperty(example = "12345623", value = "客户号")


  public String getCustomerId() {
    return customerId;
  }

  public void setCustomerId(String customerId) {
    this.customerId = customerId;
  }

  public CustomerBaseInfo custLevel(Integer custLevel) {
    this.custLevel = custLevel;
    return this;
  }

  /**
   * 客户级别：1一级，2二级，3三级，4四级，5五级
   * @return custLevel
  **/
  @ApiModelProperty(example = "1", value = "客户级别：1一级，2二级，3三级，4四级，5五级")


  public Integer getCustLevel() {
    return custLevel;
  }

  public void setCustLevel(Integer custLevel) {
    this.custLevel = custLevel;
  }

  public CustomerBaseInfo riskLevel(Integer riskLevel) {
    this.riskLevel = riskLevel;
    return this;
  }

  /**
   * 0-保守型(最低);1-保守型;2-谨慎型;3-稳健型;4-积极型;5-激进型
   * @return riskLevel
  **/
  @ApiModelProperty(example = "1", value = "0-保守型(最低);1-保守型;2-谨慎型;3-稳健型;4-积极型;5-激进型")


  public Integer getRiskLevel() {
    return riskLevel;
  }

  public void setRiskLevel(Integer riskLevel) {
    this.riskLevel = riskLevel;
  }

  public CustomerBaseInfo phone(String phone) {
    this.phone = phone;
    return this;
  }

  /**
   * 客户手机号码
   * @return phone
  **/
  @ApiModelProperty(example = "13739036666", value = "客户手机号码")


  public String getPhone() {
    return phone;
  }

  public void setPhone(String phone) {
    this.phone = phone;
  }

  public CustomerBaseInfo imId(String imId) {
    this.imId = imId;
    return this;
  }

  /**
   * 发消息用的imId
   * @return imId
  **/
  @ApiModelProperty(example = "13739036666", value = "发消息用的imId")


  public String getImId() {
    return imId;
  }

  public void setImId(String imId) {
    this.imId = imId;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    CustomerBaseInfo customerBaseInfo = (CustomerBaseInfo) o;
    return Objects.equals(this.name, customerBaseInfo.name) &&
        Objects.equals(this.customerId, customerBaseInfo.customerId) &&
        Objects.equals(this.custLevel, customerBaseInfo.custLevel) &&
        Objects.equals(this.riskLevel, customerBaseInfo.riskLevel) &&
        Objects.equals(this.phone, customerBaseInfo.phone) &&
        Objects.equals(this.imId, customerBaseInfo.imId);
  }

  @Override
  public int hashCode() {
    return Objects.hash(name, customerId, custLevel, riskLevel, phone, imId);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class CustomerBaseInfo {\n");
    
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    customerId: ").append(toIndentedString(customerId)).append("\n");
    sb.append("    custLevel: ").append(toIndentedString(custLevel)).append("\n");
    sb.append("    riskLevel: ").append(toIndentedString(riskLevel)).append("\n");
    sb.append("    phone: ").append(toIndentedString(phone)).append("\n");
    sb.append("    imId: ").append(toIndentedString(imId)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

